home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / initramfs-tools / hooks / thermal < prev    next >
Text File  |  2009-03-31  |  853b  |  47 lines

  1. #!/bin/sh
  2.  
  3. PREREQ=""
  4.  
  5. prereqs()
  6. {
  7.     echo "$PREREQ"
  8. }
  9.  
  10. case $1 in
  11. # get pre-requisites
  12. prereqs)
  13.     prereqs
  14.     exit 0
  15.     ;;
  16. esac
  17.  
  18. # Hooks for loading thermal bits into the initramfs
  19.  
  20. . /usr/share/initramfs-tools/hook-functions
  21.  
  22. case "$DPKG_ARCH" in
  23. # copy the right modules
  24. powerpc|ppc64)
  25.     # Add thermal control of Macintosh if the system is not a PS3
  26.     if [ ! -e /sys/bus/ps3_system_bus/ ]; then
  27.         force_load therm_pm72
  28.         force_load windfarm_core
  29.         force_load windfarm_cpufreq_clamp
  30.         force_load windfarm_lm75_sensor
  31.         force_load windfarm_max6690_sensor
  32.         force_load windfarm_pid
  33.         force_load windfarm_pm112
  34.         force_load windfarm_pm81
  35.         force_load windfarm_pm91
  36.         force_load windfarm_smu_controls
  37.         force_load windfarm_smu_sat
  38.         force_load windfarm_smu_sensors
  39.         force_load i2c-powermac
  40.     fi
  41.     ;;
  42. i386|amd64|ia64|lpia)
  43.     force_load fan
  44.     force_load thermal
  45.     ;;
  46. esac
  47.